package com.example.share.mapper;

import com.example.share.pojo.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yjw
 * @since 2022-05-17
 */
public interface OrderMapper extends BaseMapper<Order>{
    // TODO: 2022/5/17 查询所有订单
    List<Order> findAllOrder();

    // TODO: 2022/5/17 根据用户id查看订单
    Order findOrderByUserId(String orderUserId);

    // TODO: 2022/5/17 删除订单通过用户id
    Boolean deleteOrder(String orderUserId);
}
